package com.yonyou.pmclouds.comprehensiveacceptance.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.comprehensiveacceptance.entity.ComprehensiveAcceptanceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComprehensiveAcceptanceVOMapper extends BaseMapper<ComprehensiveAcceptanceVO> {

    ComprehensiveAcceptanceVO selectByPrimaryKey(String pkComprehensiveAcceptance);

    ComprehensiveAcceptanceVO[] selectListByPkProject(String pkProject);

    Integer selectRefByCode(@Param("code") String code, @Param("ids") String[] ids);

    ComprehensiveAcceptanceVO[] queryByCondition(@Param("pkProjects") String[] pkProjects,
                                                 @Param("creators") String[] creators,
                                                 @Param("startDate") String startDate,
                                                 @Param("endDate") String endDate,
                                                 @Param("billStatus") int[] billStatus,
                                                 @Param("start") int start,
                                                 @Param("size") int size);

    int countByCondition(@Param("pkProjects") String[] pkProjects,
                         @Param("creators") String[] creators,
                         @Param("startDate") String startDate,
                         @Param("endDate") String endDate,
                         @Param("billStatus") int[] billStatus);

    List<ComprehensiveAcceptanceVO> queryByProjectIds(@Param("pkProjects") List<String> pkProjects);

}